package cn.xiaohuodui.util;

import cn.xiaohuodui.constant.ApplicationConstants;
import cn.xiaohuodui.model.Admin;

import javax.servlet.http.HttpSession;

/**
 * Created by keepcleargas on 17-6-21.
 */
public class SessionUtil {
    /**
     * 获取登录的用户信息
     *
     * @param httpSession
     * @return
     */
    public static Admin getSignInUser(HttpSession httpSession) {
        return (Admin) httpSession.getAttribute(ApplicationConstants.SIGN_IN_USER);
    }
}
